package sceneGraph;

import javax.media.opengl.GLAutoDrawable;

import Lib3d.Draw;
import Lib3d.MaterialLib;
import Lib3d.Object3d;

/**
 * 
 * Représente un noeud comportant un objet.
 */
public class SceneObjectNode extends SceneNode {

	private static MaterialLib materialLib;
	private Object3d o;

	public SceneObjectNode(Object3d o) {
		this.o = o;
	}
	
	public static void setMaterialLib(MaterialLib mLib) {
		materialLib = mLib;
	}
	
	@Override
	public void draw(GLAutoDrawable gLDrawable) {
		Draw.draw(gLDrawable, o, materialLib);
	}

}
